#ifndef WEATHERDEVICE_H
#define WEATHERDEVICE_H
#include "Device/BaseDevice.h"
#include <QObject>
#include "Command/HttpProtocol/getGaoDeWeatherCmd.h"
class WeatherDevice : public BaseInterface<WeatherDevice>
{
    Q_OBJECT
public:
    Q_INVOKABLE explicit WeatherDevice(QObject *parent = 0);
    void getGaoDeWeatherCmdHandle(PortStruct source, QSharedPointer<BaseCmd> sharedCmd);

 private:
     QTimer *getWeatherTimer;
     HttpProtocol *httpProtocol;
          QString m_temperature;
          QString m_humidity;

private slots:

    void getWeatherSlot();

};

#endif // WEATHERDEVICE_H
